USE [Yacht Rental]
GO

/****** Object:  Table [dbo].[Boatmodels]    Script Date: 10/17/2017 1:47:46 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Boatmodels](
	[ModelID] [int] IDENTITY(1,1) NOT NULL,
	[id_model] [int] NULL,
	[model] [varchar](50) NULL,
	[nbdoucabin] [int] NULL,
	[nbsimcabin] [int] NULL,
	[heads] [int] NULL,
	[nbdbkcabin] [int] NULL,
	[nbdbedcabin] [int] NULL,
	[bt_frontpeak] [int] NULL,
	[createdate] [datetime] NULL,
	[updatedate] [datetime] NULL,
	[rowstatus] [bit] NULL,
 CONSTRAINT [PK_Boatmodels] PRIMARY KEY CLUSTERED 
(
	[ModelID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Boatmodels] ADD  CONSTRAINT [DF_Boatmodels_rowstatus]  DEFAULT ((1)) FOR [rowstatus]
GO


